Four types of relationships and code implementation of class diagrams in UML, and four types of uml
In the uml diagram, the most complex relationships are generalization, implementation, dependency, and association, if you understand these relationships, you will become familiar with understanding the UML diagram!
If you are not familiar with several relationship
UML, as a design tool, focuses on practice, and this is inseparable from nine types of diagrams. drawing is done after watching the video. When I first started to draw a picture, my head was broken, I don't know where to start, so I learned the relationship between the nine images and the four types of graphs again before drawing the picture. I finally got a bit
First, as a modeling language, the definition of UML includes two parts of UML semantics and UML notation. UML semantics: Describes the definition of exact meta-model based on UML. UML notation: Defines the representation of UML symbols, providing a standard for system modeling for developers or development tools using these graphical symbols and text syntax. These graphical symbols and literals express the application-level model, which is semantically an instance of the UML Metamodel. Second,
Labels: UML, nine types of graph analysis
UML, as a design tool, focuses on practice, and this is inseparable from nine types of diagrams. drawing is done after watching the video. When I first started to draw a picture, my head was broken, I don't know where to start, so I learned the relationship between the nine images and the four
Folder:
UML View
Nine types of UML diagrams
Relationships between classes in UML
As described above, the UML view includes one or more diagrams in each view. This article focuses on the details of each UML diagram:
1. Use Case Diagrams)
[Concept] describes user requirements, and describes system functions
Folder:
UML View
Nine types of UML diagrams
Relationships between classes in UML
As described above, the UML view includes one or more diagrams in each view. This article focuses on the details of each UML diagram:
1. Use Case Diagrams)
[Concept] describes user requirements, and describes system functions
From: 51testing software testing ForumUML includes nine types of diagrams: use case diagram, class diagram, object diagram, state diagram, sequence diagram, collaboration diagram, activity diagram, component diagram, and configuration diagram. 1) use case diagram is the simplest and most complex diagram in UML. Simply put, it is because it adopts the object-oriented idea and is based on the user's perspecti
The knowledge of UML has been learned for a while, and the understanding of the nine types of diagrams has changed a lot since I did not understand it before. The viewpoint on pure theoretical knowledge of software engineering has also changed, it tastes a little bit better.
In my opinion, the nine diagrams of UML are different understandings of a system at diff
UML (Unified Modeling Language): It is an object-oriented visual modeling language.
UML has three types of constructor blocks: Things, relationships, and graphs. Things are the abstraction of the most representative components in the model. links are the combination of things, and graphs aggregate related things.
There are nine types of diagrams in UML:
1. use ca
relationship. This is a type of association relationship, which is stronger than the aggregation relationship, it requires that the object representing the whole in a common aggregation relationship be responsible for representing the lifecycle of some objects.
[Code embodiment]: member variables
[Arrow and direction]: solid line with solid diamond. The diamond points to the whole.
6.Dependency)
[Dependency]: it is a type of use relationship. Therefore, do not use bidirectional dependency when
In general, UML has ten types of model diagrams, and ten types of diagrams can be divided into five categories:
1. use case diagram
It is used in the requirement analysis stage to describe the user's needs, who is using the system, and what functions the system performs, and emphasize who is using the role.
2. static d
Relationship diagrams of various types of JavaScript and javascript
The difference between a built-in (Build-in) object and a native (Naitve) object is that the former is always an object created during the engine initialization phase and is a subset of the latter; the latter includes some objects dynamically created during the running process.
In addition, the following concepts are added:
1. The diff
hollow diamond. The diamond points to the whole.
5. Composition)
[Composite relationship]: it is the relationship between the whole and the part, but the part cannot exist independently from the whole. If the relationship between a company and a department is a whole and a part, no department exists without the company.
A composite relationship is a type of association relationship, which is stronger than an aggregation relationship. It requires that the object representing the whole in a gene
relationship between the whole and the part, and the part can exist independently from the whole. If a car and a tire are in the overall and partial relationship, the tire can still exist when it leaves the car. An aggregation relationship is a strong association relationship. The association and aggregation cannot be distinguished in syntax, and the specific logical relationship must be investigated. [Code embodiment]: member variables [Arrow and direction]: solid line with hollow diamond.
I. Types of Graphs
As a modeling language, the definition of UML consists of UML Semantics and UML notation.
(1) UML semantic description precise metadata model definition based on UML. The meta-model provides simple, consistent, and general definitions for all UML elements in terms of syntax and semantics, enabling developers to achieve semantic consistency, eliminate the impact of the best expressions that vary from person to person. In addition, UM
logical relationship must be investigated.
[Code embodiment]: member variables
[Arrow and direction]: solid line with hollow diamond. The diamond points to the whole.
5.Combination(Composition)
[Composite relationship]: it is the relationship between the whole and the part, but the part cannot exist independently from the whole. If the relationship between a company and a department is a whole and a part, no department exists without the company.
A composite relationship is a type of associati
variables
[Arrow and direction]: solid line with hollow diamond. The diamond points to the whole.
5.Combination(Composition)
[Composite relationship]: it is the relationship between the whole and the part, but the part cannot exist independently from the whole. If the relationship between a company and a department is a whole and a part, no department exists without the company.
A composite relationship is a type of association relationship, which is stronger than an aggregation relationship.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.